import cgitb


def func(a, b):
    return a / b


if __name__ == '__main__':
    try:
        func(1, 0)
    except Exception as e:
        cgitb.enable(format='text')
        func(1, 0)
